<script>
import GmTable from "@/view/components/gmTable.vue";

export default {
    components: {
        GmTable: GmTable
    },
    data() {
        return {
            tableConfig: {
                control: 't-vehicle-route-responsibility',
                mainKey: 'companyCode', //数据主键，用于删除该条数据
                needDist: false,
                cancelPower: true,
            },
            tableColumns: [{
                name: 'routeName',
                label: '路线',
                id: 'routeName',
                search: true,
                required: false,
                searchType: 'input',
            }, {
                name: 'companyName',
                label: '承运企业',
                id: 'companyName',
                search: false,
                required: false,
                searchType: 'input',
            }, {
                name: 'companyCode',
                label: '承运企业编码',
                id: 'companyCode',
                search: false,
                required: false,
                searchType: 'input',
            }, {
                name: 'districtCode',
                label: '注册区划',
                id: 'districtCode',
                search: false,
                required: false,
                searchType: 'input',
            }, {
                name: 'vehicleLicenseLate',
                label: '车辆号牌',
                id: 'vehicleLicenseLate',
                search: false,
                required: false,
                searchType: 'input',
            },{
                name: 'createDate',
                label: '创建时间',
                id: 'createDate',
                search: false,
                searchType: 'state',
                addHide: true,
            },{
                name: 'createUserName',
                label: '创建人',
                id: 'createUserName',
                search: false,
                searchType: 'state',
                addHide: true,
            },{
                name: 'state',
                label: '状态',
                id: 'state',
                search: false,
                required: '/common/getItem/state',
                searchType: 'state',
            }],
        }
    },
}
</script>

<template>
    <div class="page-car">
        <gm-table :table-columns="tableColumns" :table-config="tableConfig"></gm-table>
    </div>
</template>

<style scoped>

</style>
